package com.ruoyi.business.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宿舍电度数对象 degrees
 *
 * @author ruoyi
 * @date 2023-06-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("degrees")
public class Degrees extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 删除标志（0代表存在 2代表删除)
     */
    @TableLogic
    private String delFlag;
    /**
     * 宿舍id
     */
    private Long dormitoryid;

    /**
     * 楼栋名称
     */
    @Excel(name = "楼栋名称")
    @TableField(exist = false)
    private String buildingName;
    /**
     * 楼层
     */
    @Excel(name = "楼层")
    @TableField(exist = false)
    private Integer floor;
    /**
     * 宿舍编号
     */
    @Excel(name = "宿舍编号")
    @TableField(exist = false)
    private String dormitorycode;
    /**
     * 性质
     */
    @Excel(name = "性质")
    @TableField(exist = false)
    private String nature;
    /**
     * 抄表时间
     */
    @DateTimeFormat("yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date readDate;

    @Excel(name = "上次抄表时间")
    @TableField(exist = false)
    private String excellastReadDate;

    @Excel(name = "抄表时间")
    @TableField(exist = false)
    private String excelreadDate;
    /**
     * 度数
     */
    @Excel(name = "度数")
    private Integer numberdegrees;
    /**
     * 上次抄表时间
     */

    @DateTimeFormat("yyyy-MM-dd")
    private Date lastReadDate;


    /**
     * 差值
     */
    @Excel(name = "差值")
    private Integer difference;

    @Excel(name = "备注")
    private String remark;
    /**
     * 前端查询抄表日期的范围
     */
    @TableField(exist = false)
    private String startreaddate;
    /**
     * 前端查询抄表日期的范围
     */
    @TableField(exist = false)
    private String endreaddate;

}
